package cn.doitedu.rtdw.beans;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SearchAggDorisBean {
    private String dt;
    private Long user_id;
    private String session_id;
    private String province;
    private String city;
    private String region;
    private String page_type;
    private String page_service;
    private String device_type;
    private String release_channel;
    private String search_id;
    private String keyword;
    private String split_keyword;
    private String similar_keyword;
    private Long search_time;
    private Long res_cnt;
    private Long click_cnt;

    public void set(SearchAggBean bean, String splitKeyword, String similarKeyword) {
        this.dt = bean.getDt();
        this.user_id =  bean.getUser_id();
        this.session_id =  bean.getSession_id();
        this.province = bean.getProvince();
        this.city = bean.getCity();
        this.region =  bean.getRegion();
        this.page_type = bean.getPage_type();
        this.page_service = bean.getPage_service();
        this.device_type =  bean.getDevice_type();
        this.release_channel = bean.getRelease_channel();
        this.search_id =  bean.getSearch_id();
        this.keyword =  bean.getKeyword();
        this.split_keyword =  bean.getKeyword();
        this.similar_keyword =  bean.getKeyword();
        this.search_time =  bean.getSearch_time();
        this.res_cnt = bean.getRes_cnt();
        this.click_cnt =  bean.getClick_cnt();
        this.split_keyword = splitKeyword;
        this.similar_keyword =similarKeyword;



    }
}
